package com.sangmo.boot.auth.core.repo;

import com.sangmo.boot.auth.core.model.AccessToken;
import com.sangmo.boot.framework.data.repo.IRepo;
import com.sangmo.boot.framework.plugin.dataview.spi.jpa.IJpaDataViewRepo;
import org.springframework.stereotype.Repository;

@Repository
public interface AccessTokenRepo extends IJpaDataViewRepo<AccessToken> {

    AccessToken findOneByClientIdAndValue(String clientId, String value);

    AccessToken findOneByClientIdAndUsername(String clientId, String username);

    void deleteByValue(String value);
}
